package com.ylx.service;

import com.ylx.pojo.Goods;
import com.ylx.pojo.PageBean;

import java.util.List;


public interface GoodsService {

    List<Goods> selectAll ();

    void add (Goods goods);

    void update (Goods goods);

    void delete (int[] ids);


    PageBean<Goods> selectByPage (int currentPage, int PageSize);

    PageBean<Goods> selectByPageCondition (int currentPage, int PageSize,Goods goods);

    List<Goods> getProducts();
    Goods getProductsById(String id);

    Goods getProductsById1(String id);

    void addMenu(Goods goods);

    void addRecipe(Goods goods);

    int deleteMenu (String id);

    void updateStatusById(String id);

    List<Goods> selectByCondition(String goodsName);

    List<Goods> selectByCondition1(String goodsName);

    void updateRecipe (Goods goods);
}
